package org.chen.service;

import org.chen.model.admin.SysUser;
import org.chen.model.dto.UpdatePasswordDTO;
import org.chen.model.dto.UpdateProfileDTO;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

import java.util.List;

public interface ISecurityUserService {
    UserDetails loadUserByUsername(String username);

    SysUser selectByUsername(String username);

    List<String> selectUserRoles(Long id);

    void updateProfile(UpdateProfileDTO profileDTO);

    void updatePassword(UpdatePasswordDTO passwordDTO);

    String login(String username, String password);

    void logout(String username);
}
